/* ==========================================================
   PANEL BAJADA PRIORIDAD - POR ENCIMA DE LA TABLA
   ========================================================== */

#eci_cc_msg_panel.eci-cc-msg-panel{
  width: 100%;
  max-width: 100%;
  height: 350px;
  max-height: 360px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 50;
}

#eci_cc_msg_panel .eci-cc-msg-list{
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
}

#eci_cc_msg_panel .eci-cc-msg-item{
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #f8fbff;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
}

#eci_cc_msg_panel .eci-cc-msg-item:last-child{
  margin-bottom: 0;
}

#eci_cc_msg_panel .eci-cc-msg-item--collapsible{
  background: #f7fbff;
}

#eci_cc_msg_panel .eci-cc-copy-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #cfe0fb;
  background: #edf4ff;
  color: #2563eb;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#eci_cc_msg_panel .eci-cc-copy-btn:hover{
  background: #dfeeff;
  border-color: #b8d1fb;
  transform: translateY(-1px);
}

#eci_cc_msg_panel .eci-cc-copy-ico{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#eci_cc_msg_panel .eci-cc-msg-main{
  min-width: 0;
}

#eci_cc_msg_panel .eci-cc-msg-toggle{
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

#eci_cc_msg_panel .eci-cc-msg-title{
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #111827;
  font-weight: 500;
}

#eci_cc_msg_panel .eci-cc-chevron-ico{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #5b6b84;
  transition: transform .2s ease;
}

#eci_cc_msg_panel .eci-cc-msg-item.is-open .eci-cc-chevron-ico{
  transform: rotate(180deg);
}

#eci_cc_msg_panel .eci-cc-msg-body{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e3ebf5;
}

#eci_cc_msg_panel .eci-cc-msg-text{
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #111827;
  word-break: break-word;
}

#eci_cc_msg_panel .eci-cc-toast{
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

#eci_cc_msg_panel .eci-cc-toast.show{
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   CORRECCION PARA LA TABLA INFERIOR (TH NEGROS)
   ========================================================== */

table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
}

table{
  position: relative;
  z-index: 1;
}
